package com.newly.common.base.entity.business.enums;

/**
 * @anthor sbq
 * @date 2021/11/15 14:53
 */
public enum AxleNum {

    空(-1),
    两轴(2),
    三轴(3),
    四轴(4),
    五轴(5),
    六轴(6);

    AxleNum(int code) {
        this.code = code;
    }

    private Integer code;

    public Integer getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public static AxleNum getAxleType(Integer s) {
        for (AxleNum t : AxleNum.values()) {
            if (t.getCode().equals(s)) {
                return t;
            }
        }
        return 空;
    }
}
